import { createRouter, createWebHistory } from 'vue-router'

import LoginView from "@/login_system/LoginView.vue"
import RegisterView from "@/login_system/RegisterView.vue"
import MainMenu from "@/game_system/MainMenu.vue"
import CreateRoom from "@/game_system/CreateRoom.vue"
import Profile from "@/game_system/Profile.vue"
import Game from "@/game_system/Game.vue"

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path: "/", component: MainMenu},
    {path: "/login", component: LoginView},
    {path: "/register", component: RegisterView},
    {path: "/create-room", component: CreateRoom},
    {path: "/profile", component: Profile},
    {path: "/game", component: Game}
  ],
})

export default router
